/**
 * ===========================================================================
 * 版权所有 湖南免了么网络科技有限公司，并保留所有权利。
 * 网站地址: http://www.mianle.me
 * ===========================================================================
 * 20:02 2018/6/6
 */
package com.mianle.userapi.config;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @Author: yiyuan
 * @Description:
 * @Date: Created in 20:02 2018/6/6
 *
 */
public class Main {
    public static void main(String[] args) {
        ApplicationContext ctx = new AnnotationConfigApplicationContext(AppContext.class);

        Course course =ctx.getBean(Course.class);
        Course course1 = (Course)ctx.getBean("course");

        course.print();
        course1.print();
    }
}
